package com.nightsoul.shiro.test.chapter12.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.nightsoul.shiro.test.chapter12.dao.PermissionDao;
import com.nightsoul.shiro.test.chapter12.entity.Permission;

@Service
public class PermissionServiceImpl implements PermissionService {
	
	@Resource
    private PermissionDao permissionDao;

    public void setPermissionDao(PermissionDao permissionDao) {
        this.permissionDao = permissionDao;
    }

    public Permission createPermission(Permission permission) {
        return permissionDao.createPermission(permission);
    }

    public void deletePermission(Long permissionId) {
        permissionDao.deletePermission(permissionId);
    }
}
